<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class AccountRecord extends BaseModel
{
    // use SoftDeletes;

    public $table = 'account_record';
    public $timestamps = true;
    static $unguarded = true;

    const CREATED_AT = 'create_time';
    const UPDATED_AT = 'update_time';

    public static function account_record_type($v = '')
    {

        $arr = array(
            '1' => '申请认识对方拒绝退费',
            '3' => '投诉扣除',
            '4' => '投诉增加',
            '5' => '账户充值',
            '7' => '加入互选池',
            '8' => '申请认识扣费',
            '10' => '拉新奖励',
            '11' => '有效用户奖励',
            '12' => '推荐渠道奖励',
            '13' => '申请认识自动通过',
            '21' => '申请认识对方未处理退费',
            '22' => '实名认证奖励',
            '23' => '学历认证奖励',
            '24' => '上传真人头像奖励',
            '25' => '上传生活照奖励',
            '26' => '完善基本信息奖励',
            '28' => '完善联系方式奖励',
            '31' => '完善家庭情况奖励',
            '32' => '完善关于我奖励',
            '30' => '完善心仪Ta奖励',
            '33' => '验证手机号奖励',
            '34' => '签到奖励',
            '40' => '微信群推广奖励',
            '41' => '小程序邀请新人点击',
            '43' => '小程序邀请新人完成实名认证',
            '51' => '申请认识获取微信',
            '52' => '抽取微信二维码',
            '53' => '邀请新用户关注服务号奖励',
            '54' => '意见反馈奖励',
            '56' => '非真人头像审核未通过扣费',
            '58' => '解锁最近访客',
            '59' => '发动态奖励',
            '60' => '动态点赞超100',
            '61' => '超级喜欢',
        );

        return isset($arr[$v]) ? $arr[$v] : (count(func_get_args()) == 0 ? $arr : '');
    }

}
